<html xmlns:th="http://www.thymeleaf.org">
<head>
    <link rel="stylesheet" href="/bootstrap-4.6.2-dist/css/bootstrap.min.css"  crossorigin="anonymous">
</head>
<body>
欢迎你，<h2 th:text="${student.username}"/>,你的密码是<p th:text="${student.password}"/>
,你的年龄是<input th:text="${student.age}"/>
<span th:text="${session.username}"/>
<table class="table table-striped">
    <thead>
    <tr>
        <th>id</th>
        <th>username</th>
        <th>password</th>
        <th>age</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="student,stat:${students}">
        <th th:text="${stat.index+1}"></th>
        <th th:text="${student.username}"></th>
        <th th:text="${student.password}"></th>
        <th th:text="${student.age}"></th>
    </tr>
    </tbody>
</table>
<script src="/bootstrap-4.6.2-dist/js/jquery.min.js"  crossorigin="anonymous"></script>
<script src="/bootstrap-4.6.2-dist/js/bootstrap.bundle.min.js"  crossorigin="anonymous"></script>
</body>
</html>